const REQ_PREFIX = {
  // 网关前缀
  gateway: "",
  // 认证服务
  oauth: "/api/v1/oauth",
  // 用户服务
  user: "/api/v1/user",
  // im服务
  im: "/api/v1/user",
}

// 文件后缀名匹配聊天文件显示的图标
const FILE_SUFFIX_TO_MIME = {
  wendang: [
    // 文档类
    {
      fileSuffix: ".exe",
      fileUrl: 'icon-ali-exe',
    }, {
      fileSuffix: ".doc",
      fileUrl: 'icon-ali-word',
    }, {
      fileSuffix: ".docx",
      fileUrl: 'icon-ali-word',
    }, {
      fileSuffix: ".xls",
      fileUrl: 'icon-ali-excel',
    }, {
      fileSuffix: ".xlsx",
      fileUrl: 'icon-ali-excel',
    }, {
      fileSuffix: ".ppt",
      fileUrl: 'icon-ali-ppt',
    }, {
      fileSuffix: ".pptx",
      fileUrl: 'icon-ali-ppt',
    }, {
      fileSuffix: ".pdf",
      fileUrl: 'icon-ali-pdf',
    }, {
      fileSuffix: ".xml",
      fileUrl: 'icon-ali-xml',
    },

    //压缩文件
    {
      fileSuffix: ".gz",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".tgz",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".bz",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".bz2",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".tbz",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".zip",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".rar",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".tar",
      fileUrl: 'icon-ali-yasuobao',
    }, {
      fileSuffix: ".7z",
      fileUrl: 'icon-ali-yasuobao',
    },

    //文字文件类型，暂时文本就先弄这一个
    {
      fileSuffix: ".txt",
      fileUrl: 'icon-ali-txt',
    }, {
      fileSuffix: ".java",
      fileUrl: 'icon-ali-java',
    }, {
      fileSuffix: ".html",
      fileUrl: 'icon-ali-html',
    }, {
      fileSuffix: ".htm",
      fileUrl: 'icon-ali-html',
    }, {
      fileSuffix: ".js",
      fileUrl: 'icon-ali-js',
    }, {
      fileSuffix: ".css",
      fileUrl: 'icon-ali-css',
    }, {
      fileSuffix: ".sql",
      fileUrl: 'icon-ali-sql',
    },
    {
      fileSuffix: ".json",
      fileUrl: 'icon-ali-json',
    },

    // 未知文件格式，剩下的都是未知未见格式


  ],
  tupian: ['.jpg', '.jpeg', '.png', '.gif', '.bmp'],
  shipin: [
    { mime: 'video/mp4', suffix: '.mp4' },
    { mime: 'application/x-mpegURL', suffix: '.m3u8' },
    { mime: 'video/webm', suffix: '.webm' },
    { mime: 'video/x-msvideo', suffix: '.avi' },
    { mime: 'video/x-ms-wmv', suffix: '.wmv' },
    { mime: 'video/x-m4v', suffix: '.m4v' },
    { mime: 'video/x-flv', suffix: '.flv' },
    { mime: 'video/quicktime', suffix: '.mov' },
    { mime: 'video/3gpp', suffix: '.3gp' }],
  yinpin: ['.mp3', '.m3u', '.mp4a', 'm4a', '.wav', '.ogg'],
  yuyin: ['.wav'],
}




export {
  REQ_PREFIX,
  FILE_SUFFIX_TO_MIME
}

